.class public Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;
.super Ljava/lang/Object;
.source "AppGalleryConfigParams.java"


# instance fields
.field a:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 12
    const-string v0, "http://inmobi.appgalleries.com/inmobi_sdk"

    iput-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->a:Ljava/lang/String;

    .line 19
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {p0, v0}, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->setFromJSON(Lorg/json/JSONObject;)V

    .line 20
    return-void
.end method


# virtual methods
.method public getUrl()Ljava/lang/String;
    .locals 1

    .prologue
    .line 15
    iget-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->a:Ljava/lang/String;

    return-object v0
.end method

.method public setFromJSON(Lorg/json/JSONObject;)V
    .locals 2
    .parameter

    .prologue
    .line 23
    if-nez p1, :cond_0

    .line 26
    :goto_0
    return-void

    .line 25
    :cond_0
    const-string v0, "url"

    iget-object v1, p0, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->a:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getStringFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->a:Ljava/lang/String;

    goto :goto_0
.end method

.method public toJSON()Lorg/json/JSONObject;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 29
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 30
    const-string v1, "url"

    iget-object v2, p0, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 31
    return-object v0
.end method
